<?php

use App\Common\Business\Users;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class DataUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $datas = [
            [
                'id'    => 1,
                'name'  => 'N1',
                'email' => 123,
                'password' => 123,
                'email_verified_at' => '2021-05-04 21:26:25',
                'mrp'   => 0,
                'pid'   => null,
                'mrp_code'  =>  '2GKM'
            ],
            [
                'id'    => 2,
                'name'  => 'N2',
                'email' => 123,
                'password' => 123,
                'email_verified_at' => '2021-05-04 21:26:25',
                'mrp'   => 0,
                'pid'   => null,
                'mrp_code'  =>  '0LLI'
            ],
            [
                'id'    => 3,
                'name'  => 'N3',
                'email' => 123,
                'password' => 123,
                'email_verified_at' => '2021-05-04 21:26:25',
                'mrp'   => 0,
                'pid'   => null,
                'mrp_code'  =>  'YT36'
            ],
            [
                'id'    => 4,
                'name'  => 'N4',
                'email' => 123,
                'password' => 123,
                'email_verified_at' => '2021-05-04 21:26:25',
                'mrp'   => 0,
                'pid'   => 2,
                'mrp_code'  =>  'MRQ2'
            ],
            [
                'id'    => 5,
                'name'  => 'N5',
                'email' => 123,
                'password' => 123,
                'email_verified_at' => '2021-05-04 21:26:25',
                'mrp'   => 0,
                'pid'   => 2,
                'mrp_code'  =>  'BXDE'
            ],
            [
                'id'    => 6,
                'name'  => 'N6',
                'email' => 123,
                'password' => 123,
                'email_verified_at' => '2021-05-04 21:26:25',
                'mrp'   => 0,
                'pid'   => 4,
                'mrp_code'  =>  'UXNH'
            ],
            [
                'id'    => 7,
                'name'  => 'N7',
                'email' => 123,
                'password' => 123,
                'email_verified_at' => '2021-05-04 21:26:25',
                'mrp'   => 0,
                'pid'   => 4,
                'mrp_code'  =>  'VYWA'
            ],

        ];
        DB::table('users')->insert($datas);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
